package com.gollum.system.domain.model;

import com.gollum.jpa.domain.HertherBaseEnity;
import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.*;


/**
 * <pre>字典数据表 </pre>
 *
 * @author Herther
 * @version 1.0.0
 * @createTime 2022年08月11日 21:59:00
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@Accessors(chain=true)
@NoArgsConstructor
@Entity
@Table(name = "sys_dict_data")
public class SysDictData extends HertherBaseEnity {

    private static final long serialVersionUID = 1L;

    /** 字典排序 */
    @Column(name = "dict_sort",columnDefinition="int(4) default 0",nullable=false)
    private Integer dictSort;

    /** 字典标签 */
    @Column(name = "dict_label", length = 100)
    private String dictLabel;

    /** 字典键值 */
    @Column(name = "dict_value", length = 100)
    private String dictValue;


    /** 表格字典样式 */
    @Column(name = "style")
    private String style;


    /** 是否默认（Y是 N否） */
    @Column(name = "has_default", length = 10)
    private String hasDefault;

    /** 状态（0正常 1停用） */
    @Column(name = "status", length = 10)
    private String status;


    @Column(name = "dict_type_id")
    private Long dictTypeId;


}
